from django.conf.urls.defaults import patterns, include, url
from settings import MEDIA_ROOT
from  ubcAccess.views import *

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'ubcSailling.views.home', name='home'),
    # url(r'^ubcSailling/', include('ubcSailling.foo.urls')),

    #(r'^$', index),
    (r'^login/$', login),
    (r'^signup/$', signup),
    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
    # exports
    url(r'^exports/', include('data_exports.urls', namespace='data_exports')),
)

urlpatterns += patterns('',
    (r'^assets/(?P<path>.*)$', 'django.views.static.serve', {'document_root': MEDIA_ROOT}),
)